package 线程第一天.卖票案例同步代码款;

public class Test {
    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread1 = new Thread(myRunnable,"001");
        thread1.start();
        Thread thread2 = new Thread(myRunnable,"002");
        thread2.start();
        Thread thread3 = new Thread(myRunnable,"003");
        thread3.start();
        Thread thread4 = new Thread(myRunnable,"004");
        thread4.start();
    }
}
